﻿Imports System.Data
Imports System.Data.Odbc
Imports WSEntidades
Public Class Lotes1Fact
    Public Shared Function Build(ByVal dr As OdbcDataReader) As Lotes1BE
        Dim tmpLotes1 As Lotes1BE = New Lotes1BE()
        Try
            With tmpLotes1
                .ClaProducto = convertDTFromDb.ConvertString(dr.Item("ClaProducto"))
                .FCancela = convertDTFromDb.convertDateTime(dr.Item("FCancela"))
                .Fecha = convertDTFromDb.convertDateTime(dr.Item("Fecha"))
                .Id = convertDTFromDb.convertInt32(dr.Item("Id"))
                .IdEmpresa = convertDTFromDb.ConvertShort(dr.Item("IdEmpresa"))
                .Obs = convertDTFromDb.ConvertString(dr.Item("Obs"))
                .Status = convertDTFromDb.ConvertString(dr.Item("Status"))
                .Usr = convertDTFromDb.ConvertString(dr.Item("Usr"))
                .UsrCancela = convertDTFromDb.ConvertString(dr.Item("UsrCancela"))
            End With
            Return tmpLotes1
        Catch ex As Exception
            Throw
        Finally
            tmpLotes1 = Nothing
        End Try
    End Function
End Class
